#include "gitTest2\gitTest2\head.h"
#include <iostream>
#include <vector>
#include <list>
#include <deque>

using namespace std;

int main(int argc, char **argv)
{
	int a(0), b = 0;
	test t;
	cout << a;
	cin >> a;
	cout << a;
	vector<int> vec;
	list<int> li;
	deque<int> deq;
	b = a;
	while(cin >> b, !cin.eof())
	{
		if(cin.bad())
			cerr << "fuck!" << endl;
		if(cin.fail())
		{
			cerr << "you fail!" << endl;
			cin.clear(istream::failbit);
			fflush(stdout);
			continue;
		}
		vec.push_back(b);
		li.push_back(b);
		li.push_front(b);
		deq.push_front(b);
		cout << b << flush;
	}
	cout << t.getX(a) << endl;
	cout << t.getY(b) << endl;
	cout << b <<endl;
	cout << "reference operator" <<endl;
    cout << "fuck U!" << endl;
	vector<int>::iterator i = vec.begin();

	while(i != vec.end())
	{
		cout << *i << flush;
		++i;
	}
    return 0;
}